/**
 * 
 */
package com.teach.service.impl;

import java.sql.SQLException;

import com.teach.dao.UserDAO;
import com.teach.entity.User;
import com.teach.service.UserLookService;

/**
 * @author Liulianqiu
 *2020年8月1日
 */
public class UserLookServiceImpl implements UserLookService{

	
	@Override
	public User look(int userId) {
		UserDAO userDAO = new UserDAO();
		try {
			return userDAO.selectById(userId);
		} catch (SQLException e) {
			e.printStackTrace();//使用日志
			throw new RuntimeException("查询用户数据失败", e);
		}
	}

}
